package com.xb.cloud.common.spring;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.xb.cloud.common.redis.template.RedisClientTemplate;


public class SpringBeanFactoryUtil {
	private static Logger logger = LoggerFactory.getLogger(SpringBeanFactoryUtil.class);
	private static RedisClientTemplate redisCache = null;
	static {
		logger.info("初始化系统辅助类:");
		try {
			redisCache = (RedisClientTemplate) PopSpringBeanFactory.getBean("redisClientTemplate");
			logger.info("系统缓存初始化:{}",redisCache);
		} catch (Exception e) {
			logger.error("初始化系统辅助类错误 :",e);
		}
	}
	public static RedisClientTemplate getRedisCache() {
		return redisCache;
	}
}
